﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="GalleryPhones.aspx.vb" Inherits="Nokia_Smartphones.GalleryPhones" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:ListView ID="ListView1" runat="server" DataKeyNames="ID" DataSourceID="SqlDataSource1"
            GroupItemCount="3">
            <AlternatingItemTemplate>
                <td id="Td1" runat="server" style="background-color: #FAFAD2; color: #284775;">
                    <a href='AddComments.aspx?ID=<%# Eval("ID") %>'>
                        <img src='<%# Eval("Picture") %>' />
                    </a>'<%# Eval("ID") %>' /> '<%# Eval("Brand") %>' />
                    <br />
                    '<%# Eval("Model_Number") %>' />
                    <br />
                    '<%# Eval("Adding_User") %>' />
                    <br />
                </td>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <td id="Td2" runat="server" style="background-color: #FFCC66; color: #000080;">
                    ID:
                    <asp:Label ID="IDLabel1" runat="server" Text='<%# Eval("ID") %>' />
                    <br />
                    Brand:
                    <asp:TextBox ID="BrandTextBox" runat="server" Text='<%# Bind("Brand") %>' />
                    <br />
                    Model_Number:
                    <asp:TextBox ID="Model_NumberTextBox" runat="server" Text='<%# Bind("Model_Number") %>' />
                    <br />
                    Year_Make:
                    <asp:TextBox ID="Year_MakeTextBox" runat="server" Text='<%# Bind("Year_Make") %>' />
                    <br />
                    Price:
                    <asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") %>' />
                    <br />
                    Picture:
                    <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                    <br />
                    Adding_User:
                    <asp:TextBox ID="Adding_UserTextBox" runat="server" Text='<%# Bind("Adding_User") %>' />
                    <br />
                    Description:
                    <asp:TextBox ID="DescriptionTextBox" runat="server" Text='<%# Bind("Description") %>' />
                    <br />
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
                    <br />
                </td>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <table id="Table1" runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
                    border-color: #999999; border-style: none; border-width: 1px;">
                    <tr>
                        <td>
                            No data was returned.
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
                <td id="Td3" runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr id="itemPlaceholderContainer" runat="server">
                    <td id="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
            <InsertItemTemplate>
                <td id="Td4" runat="server" style="">
                    Brand:
                    <asp:TextBox ID="BrandTextBox" runat="server" Text='<%# Bind("Brand") %>' />
                    <br />
                    Model_Number:
                    <asp:TextBox ID="Model_NumberTextBox" runat="server" Text='<%# Bind("Model_Number") %>' />
                    <br />
                    Year_Make:
                    <asp:TextBox ID="Year_MakeTextBox" runat="server" Text='<%# Bind("Year_Make") %>' />
                    <br />
                    Price:
                    <asp:TextBox ID="PriceTextBox" runat="server" Text='<%# Bind("Price") %>' />
                    <br />
                    Picture:
                    <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                    <br />
                    Adding_User:
                    <asp:TextBox ID="Adding_UserTextBox" runat="server" Text='<%# Bind("Adding_User") %>' />
                    <br />
                    Description:
                    <asp:TextBox ID="DescriptionTextBox" runat="server" Text='<%# Bind("Description") %>' />
                    <br />
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
                    <br />
                </td>
            </InsertItemTemplate>
            <ItemTemplate>
                <td id="Td5" runat="server" style="background-color: #FFFBD6; color: #333333;">
                    <a href='AddComments.aspx?ID=<%# Eval("ID") %>'>
                        <img src='<%# Eval("Picture") %>' />
                    </a>'<%# Eval("ID") %>' /> '<%# Eval("Brand") %>' />
                    <br />
                    '<%# Eval("Model_Number") %>' />
                    <br />
                    '<%# Eval("Adding_User") %>' />
                    <br />
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table id="Table2" runat="server">
                    <tr id="Tr1" runat="server">
                        <td id="Td6" runat="server">
                            <table id="groupPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF;
                                border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;
                                font-family: Verdana, Arial, Helvetica, sans-serif;">
                                <tr id="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr2" runat="server">
                        <td id="Td7" runat="server" style="text-align: center; background-color: #FFCC66;
                            font-family: Verdana, Arial, Helvetica, sans-serif; color: #333333;">
                            <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                <Fields>
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
                                </Fields>
                            </asp:DataPager>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <td id="Td8" runat="server" style="background-color: #FFCC66; font-weight: bold;
                    color: #000080;">
                    ID:
                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                    <br />
                    Brand:
                    <asp:Label ID="BrandLabel" runat="server" Text='<%# Eval("Brand") %>' />
                    <br />
                    Model_Number:
                    <asp:Label ID="Model_NumberLabel" runat="server" Text='<%# Eval("Model_Number") %>' />
                    <br />
                    Year_Make:
                    <asp:Label ID="Year_MakeLabel" runat="server" Text='<%# Eval("Year_Make") %>' />
                    <br />
                    Price:
                    <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' />
                    <br />
                    Picture:
                    <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
                    <br />
                    Adding_User:
                    <asp:Label ID="Adding_UserLabel" runat="server" Text='<%# Eval("Adding_User") %>' />
                    <br />
                    Description:
                    <asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
                    <br />
                </td>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PhonesConn %>"
            ProviderName="<%$ ConnectionStrings:PhonesConn.ProviderName %>" SelectCommand="SELECT [ID], [Brand], [Model_Number], [Year_Make], [Price], [Picture], [Adding_User], [Description] FROM [Phones]">
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
